package com.strelitzia.utils;

import com.strelitzia.constant.EmailConstant;

/**
 * @create 2023/12/14 12:58
 */

public class EmailUtil {
    public static String getEmailContent(String code) {
        String content = EmailConstant.EMAIL_HTML;
        char[] chars = code.toCharArray();
        for (int i = 0; i < chars.length; i++) {
            content = content.replace("$"+i, String.valueOf(chars[i]));
        }
        return content;
    }
}
